package com.moshang.blog.controller.back.system;

import java.util.Map;

import com.moshang.blog.core.utils.R;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.moshang.blog.entity.SysUserRole;
import com.moshang.blog.service.SysUserRoleService;



/**
 * 
 *
 * @author moshang
 * @email 597575122@qq.com
 * @date 2018-09-21 14:45:09
 */
@RestController
@RequestMapping("blog/sysuserrole")
public class SysUserRoleController {
    @Autowired
    private SysUserRoleService sysUserRoleService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    @RequiresPermissions("blog:sysuserrole:list")
    public R list(@RequestParam Map<String, Object> params){


        return null;
    }


    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    @RequiresPermissions("blog:sysuserrole:info")
    public R info(@PathVariable("id") Integer id){
			SysUserRole sysUserRole = sysUserRoleService.getById(id);

        return R.ok().put("sysUserRole", sysUserRole);
    }

}
